package com.studentexam.student.dao;

import com.studentexam.student.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    int insertRole(Role role);

    int getRolenameCount(String rolename);

    int updateRole(Role role);

    int delRole(Integer roleid);

    List<Role> getByRoleid(Integer roleid);

    List<Role> getAllRole(Role role);
}
